x86/altp2m: Add a new hypercall to get the active altp2m index
authorAlexandru Stefan ISAILA <aisaila@bitdefender.com>
Wed, 4 Sep 2019 15:17:39 +0000 (16:17 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 4 Sep 2019 15:17:39 +0000 (16:17 +0100)
commit039e70668a12f1fccdd89058ac3e9755733d9082
treed8acc586eac636ae5f0d3d693779df1d44679107
parenta342900d4835c127c1466c5abc1323a666e8cebd
x86/altp2m: Add a new hypercall to get the active altp2m index

The patch adds a new lib xc function (xc_altp2m_get_vcpu_p2m_idx) that
uses a new hvmop (HVMOP_altp2m_get_p2m_idx) to get the active altp2m
index from a given vcpu.

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_altp2m.c
xen/arch/x86/hvm/hvm.c
xen/include/public/hvm/hvm_op.h